package com.candy.oop;

/**
 * @author donglin
 * @Title:
 * @类名: Student
 * @date 2020/12/30
 */
public class Student {
//    属性
    private int stuAge;
    private String stuName;
    private boolean stuSex;
//    成员内部类
    class Game{
        void dosomething(){
            System.out.println("我是成员内部类");
        }

    }




//    常量，一旦声明则需要赋初始值
    public static final String schoolName="德州学院";

    public Student() {
    }

    //    方法
    public static void sayHi(){
        System.out.println("大家好");
        class Sleep{

            void doSomething(){
                System.out.println("我是局部内部类");
            }

        }





    }
    public void kill(Gun gun){

    }

    public int getStuAge() {
        return stuAge;
    }

    public void setStuAge(int stuAge) {
        this.stuAge = stuAge;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public boolean isStuSex() {
        return stuSex;
    }

    public void setStuSex(boolean stuSex) {
        this.stuSex = stuSex;
    }

    public void playGame(){
        new Car(){
            @Override
            public void run() {
            }
            @Override
            public void stop() {
            }
        };
    }



}
